package anonymouschat.messages.clientrequests;

import java.io.Serializable;


/**
 * client sends an instance of this to server, indicating chat room change.
 * server creates new chat room if dst is an inexisting chat room.
 * 
 * @author bh349
 * 
 */
public class ChatroomChangeRequest extends ClientRequest implements
        Serializable
{
    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    private String srcChatRoomName;

    private String dstChatRoomName;

    public ChatroomChangeRequest( String userID, String srcChatRoomName,
            String dstChatRoomName ) {
        super( userID );
        this.setSrcChatRoomName( srcChatRoomName );
        this.setDstChatRoomName( dstChatRoomName );
    }

    public void setSrcChatRoomName( String srcChatRoomName ) {
        this.srcChatRoomName = srcChatRoomName;
    }

    public String getSrcChatRoomName() {
        return srcChatRoomName;
    }

    public void setDstChatRoomName( String dstChatRoomName ) {
        this.dstChatRoomName = dstChatRoomName;
    }

    public String getDstChatRoomName() {
        return dstChatRoomName;
    }

}
